<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 如何引用外部的JavaScript文件 -->
    <script src="js/basic.js"></script>
    <!-- <script>
        alert('1111111111111111111111');
    </script> -->
</head>
<body>
    <!-- <button onclick="getMessage()">button</button> -->
    <!-- <script src="js/basic.js"></script> -->
    <input type="button" onclick="disp_confirm()"
value="Display a confirm box" />

<input type="button" onclick="disp_prompt()"
value="Display a prompt box" />

<input type="button" onclick="loc()"
value="location_href" />

<input type="button" onclick="rel()"
value="reload" />
</body>
</html>